<template>
    <div class="searchs">
        <el-form :inline="true" :model="searchData">
            <!-- 输入框 -->
            <el-form-item label="账号">
                <el-input v-model="searchData.username" placeholder="请输入账号" clearable />
            </el-form-item>
            <!-- 日期 -->
            <el-form-item label="创建日期">
                <el-date-picker v-model="searchData.cdate" type="date" placeholder="请选择和日期" clearable value-format="YYYY-MM-DD" />
            </el-form-item>

            <!--  提交 -->
            <el-form-item>
                <el-button type="primary" @click="onSubmit">搜索一下</el-button>
            </el-form-item>


        </el-form>
    </div>
</template>

<script setup  lang="ts">
import { reactive } from 'vue'

const searchData = reactive({
    username: '',
    cdate: '',
})

const onSubmit = () => {
    console.log(searchData)
}
</script>

<style lang="scss" scoped>
    .searchs{
        background-color: hotpink;
        border-radius: 10px;
        padding: 10px 0 0 40px ;
    }
</style>